//获取百科详情
var articleId = url("?articleId")
function getArticleDetail(){
	if (!articleId) {
		alert("异常错误")
	}
	$.ajax({
		type:"POST",
		url:AJAXURL+"/article/detail",
		dataType: AJAXDATATYPE,
		contentType:AJAXCONTENTTYPE,
		data:JSON.stringify({dataId: articleId}),
		beforeSend: function(){
		},
		success:function(data){
			if(data.success==true){
				document.title = data.result.className || '毅瑭科技'
				$('.title').text(data.result.title)
				$('.article').html(data.result.content)
			}

		},
		error:function(){
			console.log('error')
		}
	});
}

//获取宜忌速查详情
function CAIDetail(param){
	$.ajax({
		type:AJAXTYPE,
		url:AJAXURL+"/article/check/desc",
		data:JSON.stringify(param),
		dataType: AJAXDATATYPE,
		contentType:AJAXCONTENTTYPE,
		beforeSend: function(){
        },
        success:function(data){
        		console.log(data.result)
        		if(data.success==true){
        			$('.caid_title p').text(data.result.checkTitle)
        			$('.caid_content').html(data.result.checkDesc)
        		}

        },
        error:function(){
        		console.log('error')
        }
	});
}

//获取问答详情
	function AQ(id){
	$.ajax({
		type:"GET",
		url:AJAXURL+"/100/15/1001505?id="+id,
		dataType: AJAXDATATYPE,
		contentType:AJAXCONTENTTYPE,
		beforeSend: function(){
        },
        success:function(data){
        		console.log(data.result.records)
        		if(data.success==true){
        			$('.qa_title').text(data.result.faqQuestion)
        			$('.qa_container').html(data.result.faqAnswer)
        		}

        },
        error:function(){
        		console.log('error')
        }
	});
}
